package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.MemberPriceTo;
import com.atguigu.common.to.SaveSpuBoundTo;
import com.atguigu.common.to.SkuFullReITo;
import com.atguigu.common.to.SkuLadderTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-coupon")
public interface CouponInfoFeignService {
    @RequestMapping("/coupon/spubounds/spu/save")
    public R saveSpuBounds(@RequestBody SaveSpuBoundTo saveSpuBoundInfo);

    @RequestMapping("/coupon/skufullreduction/saveSkuFullReInfo")
    public R saveSkuFullReInfo(@RequestBody  SkuFullReITo skuFullReITo);

    @RequestMapping("/coupon/skuladder/saveSkuLInfo")
    public R saveSkuLInfo(@RequestBody SkuLadderTo skuLadderTo);

    @RequestMapping("/coupon/memberprice/saveMemerPrice")
    public R saveMemerPrice(@RequestBody List<MemberPriceTo> memberPriceToList);
}
